home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / imake / RCS / sunLib.rules,v < prev    next >
Text File  |  1992-08-20  |  4KB  |  167 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.2
  10. date     92.08.20.16.58.32;  author rab;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     91.10.22.13.47.35;  author rab;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24. 1.2
  25. log
  26. @checking in for rab -- jhh
  27. @
  28. text
  29. @XCOMM $XConsortium: sunLib.rules,v 1.6 91/03/24 17:55:58 rws Exp $
  30.  
  31. /*
  32.  * SunOS shared library rules
  33.  */
  34.  
  35. #ifndef HasSharedLibraries
  36.   #ifdef sprite
  37.     #define HasSharedLibraries NO
  38.   #else
  39.     #define HasSharedLibraries YES
  40.   #endif
  41. #endif
  42. #ifndef SharedDataSeparation
  43.   #ifdef sprite
  44.     #define SharedDataSeparation NO
  45.   #else
  46.     #define SharedDataSeparation YES
  47.   #endif
  48. #endif
  49. #ifndef SharedCodeDef
  50.   #ifdef sprite
  51.     #define SharedCodeDef
  52.   #else
  53.     #define SharedCodeDef -DSHAREDCODE
  54.   #endif
  55. #endif
  56. #ifndef SharedLibraryDef
  57.   #ifdef sprite
  58.     #define SharedLibraryDef
  59.   #else
  60.     #define SharedLibraryDef -DSUNSHLIB
  61.   #endif
  62. #endif
  63. #ifndef ShLibIncludeFile
  64. #define ShLibIncludeFile <sunLib.tmpl>
  65. #endif
  66. #ifndef SharedLibraryLoadFlags
  67.   #ifdef sprite  
  68.     #define SharedLibraryLoadFlags
  69.   #else
  70.     #define SharedLibraryLoadFlags -assert pure-text
  71.   #endif
  72. #endif
  73. #ifndef PositionIndependentCFlags
  74.   #ifdef sprite
  75.     #define PositionIndependentCFlags
  76.   #else
  77.     #define PositionIndependentCFlags -pic
  78.   #endif
  79. #endif
  80.  
  81. /*
  82.  * InstallSharedLibrary - generate rules to install the shared library.
  83.  */
  84. #ifndef InstallSharedLibrary
  85. #define    InstallSharedLibrary(libname,rev,dest)                @@@@\
  86. install:: Concat(lib,libname.so.rev)                     @@@@\
  87.     MakeDir($(DESTDIR)dest)                        @@@@\
  88.     $(INSTALL) -c $(INSTLIBFLAGS) Concat(lib,libname.so.rev) $(DESTDIR)dest @@@@\
  89.  
  90. #endif /* InstallSharedLibrary */
  91.  
  92. /*
  93.  * InstallSharedLibraryData - generate rules to install the shared library data
  94.  */
  95. #ifndef InstallSharedLibraryData
  96. #define    InstallSharedLibraryData(libname,rev,dest)            @@@@\
  97. install:: Concat(lib,libname.sa.rev)                    @@@@\
  98.     MakeDir($(DESTDIR)dest)                        @@@@\
  99.     $(INSTALL) -c $(INSTLIBFLAGS) Concat(lib,libname.sa.rev) $(DESTDIR)dest @@@@\
  100.     RanLibrary($(RANLIBINSTFLAGS) Concat($(DESTDIR)dest/lib,libname.sa.rev))
  101.  
  102. #endif /* InstallSharedLibraryData */
  103.  
  104. /*
  105.  * NormalSharedLibraryTarget - generate rules to create a shared library;
  106.  * build it into a different name so that the we do not hose people by having
  107.  * the library gone for long periods.
  108.  */
  109. #ifndef SharedLibraryTarget
  110. #define SharedLibraryTarget(libname,rev,solist,down,up)            @@@@\
  111. AllTarget(Concat(lib,libname.so.rev))                    @@@@\
  112.                                     @@@@\
  113. Concat(lib,libname.so.rev):  solist                    @@@@\
  114.     $(RM) $@@~                            @@@@\
  115.     (cd down; $(LD) -o up/$@@~ $(SHLIBLDFLAGS) solist)        @@@@\
  116.     $(RM) $@@                             @@@@\
  117.     $(MV) $@@~ $@@                            @@@@\
  118.                                     @@@@\
  119. clean::                                    @@@@\
  120.     $(RM) Concat(lib,libname.so.rev)
  121.  
  122. #endif /* SharedLibraryTarget */
  123.  
  124. /*
  125.  * SharedLibraryDataTarget - generate rules to create shlib data file;
  126.  */
  127. #ifndef SharedLibraryDataTarget
  128. #define SharedLibraryDataTarget(libname,rev,salist)            @@@@\
  129. AllTarget(Concat(lib,libname.sa.rev))                    @@@@\
  130.                                     @@@@\
  131. Concat(lib,libname.sa.rev):  salist                    @@@@\
  132.     $(RM) $@@                            @@@@\
  133.     $(AR) $@@ salist                            @@@@\
  134.     RanLibrary($@@)                            @@@@\
  135.                                     @@@@\
  136. clean::                                    @@@@\
  137.     $(RM) Concat(lib,libname.sa.rev)
  138.  
  139. #endif /* SharedLibraryDataTarget */
  140. @
  141.  
  142.  
  143. 1.1
  144. log
  145. @Initial revision
  146. @
  147. text
  148. @d8 5
  149. a12 1
  150. #define HasSharedLibraries YES
  151. d15 5
  152. a19 1
  153. #define SharedDataSeparation YES
  154. d22 5
  155. a26 1
  156. #define SharedCodeDef -DSHAREDCODE
  157. d29 5
  158. a33 1
  159. #define SharedLibraryDef -DSUNSHLIB
  160. d39 5
  161. a43 1
  162. #define SharedLibraryLoadFlags -assert pure-text
  163. d46 5
  164. a50 1
  165. #define PositionIndependentCFlags -pic
  166. @
  167.